export function pushNavigateTo(location) {
	if (typeof location === 'string') {
		uni.navigateTo({
			url: location,
		})
	}
	const {
		path,
		query
	} = location || {}
	if (path) {
		uni.navigateTo({
			url: path,
			success(res) {
				res.eventChannel.emit('dataTransProps', query)
			}
		})
	}
}